//
//  AlterCustomCell.m
//  项目
//
//  Created by 翟瑞 on 15/5/19.
//  Copyright (c) 2015年 翟瑞. All rights reserved.
//

#import "AlterCustomCell.h"

@implementation AlterCustomCell

- (void)dealloc
{
    [_alter_imageView release];
    [_alter_label release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createAlterCustom];
    }
    return self;
}

- (void)createAlterCustom
{
    self.alter_imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, [UIScreen mainScreen].bounds.size.width - 20, [UIScreen mainScreen].bounds.size.height / 3.2)];
    self.alter_imageView.layer.cornerRadius = 10;
    [self.contentView addSubview:self.alter_imageView];
    [self.alter_imageView release];
    
    
    self.alter_label = [[UILabel alloc] initWithFrame:CGRectMake(0, 60, [UIScreen mainScreen].bounds.size.width, 50)];
    // 透明
    self.alter_label.font = [UIFont boldSystemFontOfSize:21];
    self.alter_label.backgroundColor = [UIColor clearColor];
    self.alter_label.textColor = [UIColor whiteColor];
    self.alter_label.textAlignment = NSTextAlignmentCenter;
    [self.alter_imageView addSubview:self.alter_label];
    [self.alter_label release];
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
